package com.yami.shop.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yami.shop.bean.app.dto.MyOrderDto;
import com.yami.shop.bean.app.dto.MyRecordDto;
import com.yami.shop.bean.model.Order;
import com.yami.shop.bean.model.WxRecord;
import com.yami.shop.bean.param.OrderParam;
import com.yami.shop.bean.param.WxRecordParam;
import com.yami.shop.common.util.PageAdapter;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户表单提交记录表 Mapper 接口
 * </p>
 *
 * @author kubilewang
 * @since 2022-02-27
 */
public interface WxRecordMapper extends BaseMapper<WxRecord> {
    List<WxRecord> getList(@Param("adapter") PageAdapter adapter, @Param("orderParam") WxRecordParam wxRecordParam);

    Long getCount(@Param("orderParam") WxRecordParam wxRecordParam);


    List<MyRecordDto> listMyRecordByUserId(@Param("adapter") PageAdapter adapter, @Param("userId") String userId);

    Long countMyRecordByUserId(@Param("userId") String userId);
}
